﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTGroup.iNek.WinUI
{
    /// <summary>
    /// Gis 相关的操作类的基础类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseGisHandler<T> where T : new()
    {
        private static object loker = new object();
        /// <summary>
        /// 获取单例
        /// </summary>
        private static T instance = default(T);
        /// <summary>
        /// 获取单例
        /// </summary>
        public static T Instance
        {
            get
            {
                lock (loker)
                {
                    if (instance == null)
                    {
                        instance = new T();
                    }
                }
                return instance;
            }
            set { instance = value; }
        }

    }
}
